package com.jzsm.modules.sender.senderService;

import com.jzsm.modules.sender.bo.message.MessageBo;
import com.jzsm.modules.sender.pojo.PushChannelAccount;

public interface IMessageSender {
    /**
     * 推送消息
     *
     * @param message
     * @param account
     * @return
     */
    String sendMessage(String message, PushChannelAccount account);

    String sendMessage(MessageBo bo);

    /**
     * 更新消息
     *
     * @param message
     * @param account
     * @return
     */
    String updateMessage(String message, PushChannelAccount account);

    /**
     * 撤回消息
     *
     * @param msgId
     * @param account
     * @return
     */
    String recallMessage(String msgId, PushChannelAccount account);
}
